<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>登录主页</title>

    <meta name="description" content="Source code generated using layoutit.com">
    <meta name="author" content="LayoutIt!">

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

  </head>
  <body style="background-image: url(img/bg.jpg);background-size:cover">

    <div class="container-fluid">
	<div class="row">
		<div class="col-md-6">
		</div>
		<div class="col-md-6">
			<div class="row">
				<div class="col-md-6" style="margin-top:400px">
				<!-- from表单的action属性和Struts.xml配置文件中的action节点的name属性一一对应；
					method-是使用http请求时传输表单数据的方式：get方式和post方式。
					get-使用url传参的方式进行，中文容易乱码；
					post-表单的方式进行传参，支持中文。
				 -->
					<form class="form-horizontal" role="form" action="doLoginAction2" method="post">
						<div class="form-group">
							 
							<label for="inputEmail3" class="col-sm-2 control-label">
								用户名
							</label>
							<!-- input输入框的 name属性用来和action载体变量的属性值进行映射
							也就是，input输入框的值会在Struts框架中，传递到action类中变量UserInfoB的userName属性上
							
							 -->
							<div class="col-sm-10">
								<input type="text" class="form-control" id="txtUserName" name="userInfoB.userName">
							</div> 
						</div>
						<div class="form-group">
							 
							<label for="inputPassword3" class="col-sm-2 control-label">
								密  码
							</label>
							<div class="col-sm-10">
								<input type="password" class="form-control" id="txtUserPsw" name="userInfoB.userPsw">
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<div class="checkbox">
									 
									<label>
										<input type="checkbox"> Remember me
									</label>
								</div>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								 
								<button type="submit" class="btn btn-default">
									登  录
								</button>
							</div>
						</div>
					</form>
				</div>
				<div class="col-md-6">
				</div>
			</div>
		</div>
	</div>
</div>

    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/scripts.js"></script>
  </body>
</html>